package cn.net.shuxing.yifu.common.bean;

import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Transient;
import java.io.Serializable;
import java.math.BigDecimal;

@Data
public class ShareholderCoinGrantHistory extends BaseBean implements Serializable {
	@Id
	@Column
	private Integer id;
	@Column
	private Integer coinTypeId;
	@Column
	private Integer userId;
	@Column
	private java.math.BigDecimal count;
	@Column
	private java.math.BigDecimal leftCount;
	@Column
	private Integer type;
	@Column
	private Integer deleted;
	@Column
	private java.time.LocalDateTime createTime;
	@Column
	private java.time.LocalDateTime updateTime;
	@Column
	private BigDecimal oldPrice;
	@Column
	private String orderKey;

	@Transient
	private BigDecimal currentPrice;
}

/*
{
	id:主键,
	coinTypeId:币种id,
	userId:股东id,
	count:本次可购买总量,
	leftCount:剩余购买数量,
	type:0：活币 1：休眠币,
	deleted:,
	createTime:,
	updateTime:
	oldPrice: 历史公价,
	currentPrice: 当前公价
}

*/
